﻿using System;
using System.Web.Mvc;
using Ymatou.CommonService;
using YmtRpc.Domain;

namespace YmtRpc.Web.Admin.Controllers
{
    public class warmupController : Controller
    {
        // GET: Home
        public ActionResult Index()
        {
            try
            {
                var warmup = RepositoryHub.ServiceDependencySamplingRepository.First(new { ConsumerAppId = "userservice.ymatou.com" });

                ApplicationLog.Debug("点火 成功");

                return Content("ok");
            }
            catch (Exception ex)
            {
                ApplicationLog.Error(string.Format("点火 异常：{0}", ex.Message), ex);
                return Content(string.Format("string:{0}", ex.Message));
            }
        }
    }
}